<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="4" class="t_bar2">项目基本情况</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td colspan="3"><input id="zh_title" name="proposal/zh_title"
			label="项目名称" type="text" required
			class="input_css required maxlength:50" style="width: 586px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap  align="right" ><span class="color_red">*</span>并购形式：</td>
		<td colspan="3">
		 <label><input type="radio" name="maform"   style="vertical-align: middle;"  class="do" value="1" label="股权并购 " onchange="changeAreaMa();"><span style="vertical-align: middle;">股权并购</span></label>
		 <label><input type="radio" name="maform"  style="vertical-align: middle;"  class="do" value="2" label="资产并购" onchange="changeAreaMa();"><span style="vertical-align: middle;">资产并购</span></label>
		 <label><input type="radio" name="maform"  style="vertical-align: middle;"  class="do" value="3" label="其他" onchange="changeAreaMa();"><span style="vertical-align: middle;">其他</span></label>
		 <input type="text" style="display: none" id="maform_sel" name="proposal/maform_sel" maxlength="20"  label="并购形式-->其他" value="<x:out select="$xmlData/data/proposal/maform_sel" />">
		<input type="hidden" id='maform_value' name="proposal/maform_value" class="required"  label="并购形式"  value="<x:out select="$xmlData/data/proposal/maform_value" />">	
		<input type="hidden" name="proposal/maform_name" id="maform_name" value="<x:out select="$xmlData/data/proposal/maform_name" />">	
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>中方控股（%）：</td>
		<td><input name="proposal/hold_share_cn"  label="中方控股"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,2,2)"
			 maxlength="20"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/hold_share_cn" />" /></td>
		<td align="right"><span class="color_red">*</span>外方控股（%）：</td>
		<td><input name="proposal/hold_share_ot"  label="外方控股"  style="text-align: right;" 
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,2,2)"
			 maxlength="20"
			value="<x:out select="$xmlData/data/proposal/hold_share_ot" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>境外投资批准文件（文号）：</td>
		<td><input name="proposal/over_country_no"  label="境外投资批准文件（文号）"
			type="text" class="input_css required"
			 maxlength="20"
			value="<x:out select="$xmlData/data/proposal/over_country_no" />" /></td>
		<td align="right"><span class="color_red">*</span>外汇登记证号：</td>
		<td><input name="proposal/foreign_exchange_no"  label="外汇登记证号"
			type="text" class="input_css required"
			 maxlength="20" value="<x:out select="$xmlData/data/proposal/foreign_exchange_no" />" /></td>
	</tr>
	<tr>

		<td align="right"><span class="color_red">*</span>收购合同总额（万元）：</td>
		<td ><input name="proposal/fund/ma_ivestment_amt"  id="ma_ivestment_amt"   type="text" 
			class="input_css required" style="text-align: right" label="收购合同总额"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/fund/ma_ivestment_amt" />" /></td>
		<td align="right" nowrap><span class="color_red">*</span>收购合同签订日期：</td>
		<td><c:set var="ma_ctr_date"><x:out select="$xmlData/data/proposal/ma_ctr_date" /></c:set> 
			<cpt:date id="ma_ctr_date" name="proposal/ma_ctr_date"
				value="${ma_ctr_date}" className=" required date" label="收购合同签订日期"></cpt:date>
		</td>
	</tr>
	
	<tr>
		
		<td align="right" nowrap><span class="color_red">*</span>约定付款完成日期：</td>
		<td><c:set var="promise_pay_date"><x:out select="$xmlData/data/proposal/promise_pay_date" /></c:set> 
			<cpt:date id="promise_pay_date" name="proposal/promise_pay_date"
				value="${promise_pay_date}" className=" required date" label="约定付款完成日期"></cpt:date>
		</td>
		<td align="right" nowrap><span class="color_red">*</span>约定产权交割日期：</td>
		<td><c:set var="property_pay_date"><x:out select="$xmlData/data/proposal/property_pay_date" /></c:set> 
			<cpt:date id="property_pay_date" name="proposal/property_pay_date"
				value="${property_pay_date}" className=" required date" label="约定产权交割日期"></cpt:date>
		</td>
	</tr>
	
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>申请日期：</td>
		<td colspan="3"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className=" required date" label="申请日期"></cpt:date>
		</td>

	</tr>
	</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo1" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar2">已并购境外研发机构基本情况</td>

	</tr>
	<tr>
		<td width="20%" align="right"><span class="color_red">*</span>研发机构名称：</td>
		<td colspan="5"><input name="ma_company/ma_company_name" label="研发机构名称"
			type="text" required class="input_css required maxlength:100"
			style="width: 585px;" maxlength="100"
			value="<x:out select="$xmlData/data/ma_company/ma_company_name" />" /></td>
	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>研发机构地址：</td>
		<td colspan="5"><input name="ma_company/regist_address"
			label="研发机构地址" type="text" class="input_css required"
			style="width: 585px;" maxlength="100"
			value="<x:out select="$xmlData/data/ma_company/regist_address" />" /></td>
	</tr>

	<tr>
	<td align="right" nowrap><span class="color_red">*</span>设立时间：</td>
		<td colspan="2"><c:set var="regist_date"><x:out select="$xmlData/data/ma_company/regist_date" /></c:set> 
			<cpt:date id="regist_date" name="ma_company/regist_date"
				value="${regist_date}" className=" required date" label="设立时间"></cpt:date>
		</td>
		<td style="width: 20%" align="right" ><span class="color_red">*</span>国家认证级别：</td>
		<td style="width: 20%" colspan="2"><input  name="merger/country_level_2"
					label="国家认证级别" type="text"  class="input_css required " maxlength="100"
				value="<x:out select="$xmlData/data/merger/country_level_2" />" /></td>
	</tr>
	
	<tr>
		<td  align="right" ><span class="color_red">*</span>机构所在区域：</td>
		<td colspan="2">
		 <label><input type="radio" name="exhibition" id="radio_exhibition_1"  style="vertical-align: middle;"  class="do" value="1" label="美国" onchange="changeArea(this.id);"><span style="vertical-align: middle;">美国</span></label>
		 <label><input type="radio" name="exhibition" id="radio_exhibition_2" style="vertical-align: middle;"  class="do" value="2" label="欧洲" onchange="changeArea(this.id);"><span style="vertical-align: middle;">欧洲</span></label>
		 <label><input type="radio" name="exhibition" id="radio_exhibition_3" style="vertical-align: middle;"  class="do" value="3" label="日本" onchange="changeArea(this.id);"><span style="vertical-align: middle;">日本</span></label>
		 <label><input type="radio" name="exhibition" id="radio_exhibition_4" style="vertical-align: middle;"  class="do" value="4" label="韩国" onchange="changeArea(this.id);"><span style="vertical-align: middle;">韩国</span></label>
		 <label><input type="radio" name="exhibition" id="radio_exhibition_5" style="vertical-align: middle;"  class="do" value="5" label="其他" onchange="changeArea(this.id);"><span style="vertical-align: middle;">其他</span></label>
		 <input type="text" style="display: none" class="input_css " id="exhibition_area" name="proposal/exhibition_area" maxlength="20"  label="机构所在区域-->其他" value="<x:out select="$xmlData/data/proposal/exhibition_area" />">
		<input type="hidden" id='exhibition_value' name="proposal/exhibition_value" class="required"  label="机构所在区域"  value="<x:out select="$xmlData/data/proposal/exhibition_value" />">	
		<input type="hidden" name="proposal/exhibition_name" id="exhibition_name" value="<x:out select="$xmlData/data/proposal/exhibition_name" />">	
		</td>
		<td align="right" nowrap width="200"><span class="color_red">*</span>研发机构面积<br/>（平方米）：</td>
		<td colspan="2"><input name="proposal/premises_area" label="研发机构面积" type="text"
			required class="input_css required maxlength:50" maxlength="10"
			onfocus="InitInput.setNumber(this,9,4,2)"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/premises_area" />" /></td>
	</tr>
	<tr>
		
		<td align="right" nowrap><span class="color_red">*</span>研发设备价值（万元）：</td>
		<td colspan="2"><input name="merger/project_valuation_2"     type="text" 
					class="input_css required" style="text-align: right" label="研发设备价值"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/merger/project_valuation_2" />" /></td>
		<td align="right" nowrap><span class="color_red">*</span>年服务收入（万元）：</td>
		<td colspan="2"><input  name="merger/sale_budget_2" onfocus="InitInput.setNumber(this,9,4,2)" 
	            style="text-align: right" label="年服务收入" type="text"  class="input_css required " 
				value="<x:out select="$xmlData/data/merger/sale_budget_2" />" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>研发机构性质：</td>
		<td colspan="5">
		 <label><input type="radio" name="organization_type"  id="organization_01" style="vertical-align: middle;"  class="do" value="1" label="独立法人" onchange="changeArea2();"><span style="vertical-align: middle;">独立法人</span></label>
		 <label><input type="radio" name="organization_type"  id="organization_02" style="vertical-align: middle;"  class="do" value="2" label="内设机构" onchange="changeArea2();"><span style="vertical-align: middle;">内设机构</span></label>
		 <input type="hidden" id='organization_type_value' name="merger/organization_type_value" class="required"  label="研发机构性质"  value="<x:out select="$xmlData/data/merger/organization_type_value" />">	
		 <input type="hidden" name="merger/organization_type_name" id="organization_type_name" value="<x:out select="$xmlData/data/merger/organization_type_name" />">
			<span >&nbsp;&nbsp;&nbsp;&nbsp;机构原属母公司名称：</span>
			<input id="organization_type_other" maxlength="100" label="研发机构性质选择内设机构时，机构原属母公司名称"
			name="merger/organization_type_other" value="<x:out select="$xmlData/data/merger/organization_type_other" />">
		</td>
		</tr>
		<tr>
		<td align="right" nowrap><span class="color_red">*</span>机构类别：</td>
		<td colspan="5">
		
         <label><input type="checkbox" name="organization_category" id="category_01"  style="vertical-align: middle;"  class="do" value="1" label="技术研发类" onchange="changeArea1();"><span style="vertical-align: middle;">技术研发类</span></label>
		 <label><input type="checkbox" name="organization_category" id="category_02" style="vertical-align: middle;"  class="do" value="2" label="应用研发类" onchange="changeArea1();"><span style="vertical-align: middle;">应用研发类</span></label>
		 <label><input type="checkbox" name="organization_category" id="category_03" style="vertical-align: middle;"  class="do" value="3" label="基础研发类 " onchange="changeArea1();"><span style="vertical-align: middle;">基础研发类 </span></label>
		 <label><input type="checkbox" name="organization_category" id="category_04" style="vertical-align: middle;"  class="do" value="4" label="设计类 " onchange="changeArea1();"><span style="vertical-align: middle;">设计类 </span></label>
		 <label><input type="checkbox" name="organization_category" id="category_05" style="vertical-align: middle;"  class="do" value="5" label="咨询服务类" onchange="changeArea1();"><span style="vertical-align: middle;">咨询服务类</span></label>
		 <label><input type="checkbox" name="organization_category" id="category_06" style="vertical-align: middle;"  class="do" value="6" label="检测类" onchange="changeArea1();"><span style="vertical-align: middle;">检测类</span></label>
		 <label><input type="checkbox" name="organization_category" id="category_07" style="vertical-align: middle;"  class="do" value="7" label="其他" onchange="changeArea1();"><span style="vertical-align: middle;">其他</span></label>
		<input type="text"  id="organization_category_other" name="merger/organization_category_other" maxlength="20"  label="机构类别-->其他" value="<x:out select="$xmlData/data/merger/organization_category_other" />">
		<input type="hidden" id='organization_category_value' name="merger/organization_category_value" class="required"  label="机构类别"  value="<x:out select="$xmlData/data/merger/organization_category_value" />">	
		<input type="hidden" name="merger/organization_category_name" id="organization_category_name" value="<x:out select="$xmlData/data/merger/organization_category_name" />">		
		</td>

	</tr>
	<tr align="center">
		<td  rowspan="2" align="right">机构人员情况：</td>
		<td ><span class="color_red">*</span>人员总数：</td>
		<td  nowrap><span class="color_red">*</span>本科以上学历人数：</td>
		<td  nowrap><span class="color_red">*</span>博士人数：</td>
		<td ><span class="color_red">*</span>客座人员人数：</td>
	</tr>
	<tr align="center">
		<td><input name="merger/total_people_2"  id="total_people_2"   type="text" 
					class="input_css required valueGreatEqual:total_people_2:visiting_people_2" style="text-align: right" label="人员总数"
					onfocus="InitInput.setNumber(this,9,0,0)"
					value="<x:out select="$xmlData/data/merger/total_people_2" />" /></td>
		<td><input name="merger/undergraduate_people_2"  id="undergraduate_people_2"   type="text" 
					class="input_css required valueGreatEqual:total_people_2:undergraduate_people_2" style="text-align: right" label="其中本科以上学历人数"
					onfocus="InitInput.setNumber(this,9,0,0)"
					value="<x:out select="$xmlData/data/merger/undergraduate_people_2" />" /></td>
		
		<td><input  name="merger/doctor_people_2" id="doctor_people_2" onfocus="InitInput.setNumber(this,9,0,0)" 
		            style="text-align: right" label="其中博士以上学历人数" type="text"  
		            class="input_css required  valueGreatEqual:total_people_2:doctor_people_2" 
					value="<x:out select="$xmlData/data/merger/doctor_people_2" />" /></td>
		<td><input  name="merger/visiting_people_2" id="visiting_people_2" onfocus="InitInput.setNumber(this,9,0,0)" 
		            style="text-align: right" label="其中客座人员数" type="text"  class="input_css required " 
					value="<x:out select="$xmlData/data/merger/visiting_people_2" />" /></td>
		</tr> 
</table>

<div class="t_bar2"><span class="color_red">*</span>已并购境外研发机构拥有知识产权情况</div>
<table id="tblServiceContents" cellpadding="0" class="t_css" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="20%">拥有核心技术</th>
			<th class="TblHead" align="center" width="20%">主要应用领域</th>
			<th class="TblHead" align="center" width="20%">专利号</th>
			<th class="TblHead" align="center" width="10%">所有权人</th>
			<th class="TblHead" align="center" width="10%">专利年限</th>
			<th class="TblHead" align="center" width="10%">产业化时间</th>
			
			
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton" name="selServiceContents">
			</td>
			<td align="center"><span name="servicecontents|servicecontent[0]@seq_no">[index]</span>
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|cert_category" class="input_text required"
				maxlength=100 label="拥有核心技术" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|cert_level" class="input_text required"
				maxlength=100 label="主要应用领域" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%;" 
				name="servicecontents|servicecontent[0]|patent_no" class="input_text required"
				maxlength=100 label="专利号" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|patent_people" class="input_text required"
				maxlength=100 label="所有权人" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|patent_term" class="input_text required"
				maxlength=100 label="专利年限" value="" />
			</td>
			<td align="center" nowrap><input  id="servicecontent_start_date_[0]" name="servicecontents|servicecontent[0]|start_date" label="产业化时间" value="" class=" required input_text date " style="width:55px" /></td>
			
		</tr>


		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/servicecontents/servicecontent" var="servicecontent">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><input type="radio" class="radiobutton"
					name="selServiceContents">
				</td>
				<td align="center"><span
					name="servicecontents/servicecontent[${flag}${index}]@seq_no">${index+1}</span></td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/cert_category"
					class="input_text required" maxlength=100 label="拥有核心技术"
					value="<x:out select="$servicecontent/cert_category" />" />
				</td>
				
			<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/cert_level"
					class="input_text required" maxlength=100 label="主要应用领域"
					value="<x:out select="$servicecontent/cert_level" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/patent_no"
					class="input_text required" maxlength=100 label="专利号"
					value="<x:out select="$servicecontent/patent_no" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/patent_people"
					class="input_text required" maxlength=100 label="所有权人"
					value="<x:out select="$servicecontent/patent_people" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/patent_term"
					class="input_text required" maxlength=100 label="专利年限"
					value="<x:out select="$servicecontent/patent_term" />" />
				</td>
				<td align="center" nowrap><c:set var="start_date" scope="page"><x:out select="$servicecontent/start_date"/></c:set>
				<input  id="servicecontent_start_date_[${flag}${index}]" value="${start_date}" name="servicecontents/servicecontent[${flag}${index}]/start_date" class="required date input_text" style="width:55px" label="通过认证时间" /> 
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
						showAllDateTag("tblServiceContents");
		</script>
	</tbody>
</table>
<table width="100%" align="center" class="t_css" id="tblServiceContents_1">
		<col style="width:5%"/>
		<col style="width:5%"/>
		<col style="width:20%"/>
		<col style="width:20%"/>
		<col style="width:20%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
		<col style="width:10%"/>
	<tr>	
		<td align="center" colspan="2">备注<br/>（限100字）</td>
	    <td colspan="6">
		    <textarea rows="3" cols="150" name='servicecontents/summary' class="input_textarea required maxlength:100"   label="备注"><x:out select="$xmlData/data/servicecontents/summary"/></textarea>
		    <input type='hidden' name='servicecontents/summary_hidden' id='servicecontents/summary_hidden' value=''>
	    </td>
	</tr>
</table>
<table width="100%" align="center">
	<tr>
		<td colspan="8"><input class="button" name="cmdAddbefore" type=button value="添加"
			onclick="addNewRow('tblServiceContents');showDateTag('tblServiceContents');try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev"
			type=button value="上移"
			onclick="movePrev('tblServiceContents','selServiceContents')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblServiceContents','selServiceContents')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblServiceContents','已并购境外研发机构拥有知识产权情况')"></td>
	</tr>
	
</table>

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo2" cellspacing="1">

	<tr>
		<td colspan="4" class="t_bar2">申请项目资金情况（金额单位：万元）</td>

	</tr>
	<tr>
		<td align="right" width="150">项目类别：</td>
		<td colspan="4"><x:out select="$xmlData/data/proposal/grant_name" /></td>
	</tr>
	<tr>
		<td align="right">实际投入资金总额：</td>
		<td colspan="1"><input name="proposal/investment_budget" id="investment_budget"
			 label="实际投入资金总额" type="text" class="input_css  gray" disabled
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right"  width="150">申请金额：</td>
		<td><input name="proposal/sqje" id="sqje"
			label="申请金额" type="text" 
			class="input_css  gray" disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/sqje" />" /></td>
	</tr>
	<tr>
		<td align="right">支持方式：</td>
		<td><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>
		<td align="right">管理类别：</td>
		<td><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /></span></td>
	</tr>
	<tr>
		
		<td align="right">资金级次：</td>
		<td colspan="1"><span name="proposal/fund_level">市级</span></td>
		<td align="right" nowrap>归口管理部门：</td>
		<td colspan="1"><span name="proposal/org_name">无锡市经济和信息化委员会</span></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="3"><c:set var="industry">
				<x:out select="$xmlData/data/proposal/industry_value" />
			</c:set> <cpt:checkbox key="industry" name="industry" repeatColumn="5"
				style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value"
			name="proposal/industry_value" class="required" value="${industry}"
			label="项目所属产业"> <input type="hidden"
			name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="3">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	
	
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="4">申请资助依据条款
		</td>
		</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息</td>
		
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>

<script type="text/javascript">
$(function(){
	resourceAssess();
	//changeArea();
	changeAreaMa();
	changeArea1();
	changeArea2();
	
	$("input[id^='radio_exhibition_']").each(function(){
		var id = $(this).attr("id");
		changeArea(id);
	});
});



function resourceAssess() {
	var val = $("#type_project_value").val();
	var classAttr = "input_css";
	var obj = $("#resource_assess");
	if(val == '02') {
		obj.attr("style","display:");
		obj.children().find("input").each(function(){
	 		$(this).attr("class", classAttr+" required");
	 	});
	} else {
		obj.attr("style","display:none");
		obj.children().find("input").each(function(){
	 		$(this).attr("class", classAttr);
	 	});
	}
	var obj2 = $("#resource_assess2");
	
	if(val == '03') {
		obj2.attr("style","display:");
		$("#country_area").attr("class", classAttr+" required  maxlength:200");
	} else {
		obj2.attr("style","display:none");
		$("#country_area").attr("class", classAttr);
	}
}


function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
	
}

function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}

function changeArea(id) {
	var radio = $("#"+id); 
	var val = radio.val();
	if(val=='5'){
		if(radio.attr("checked")){
			$("#exhibition_area").css("display","");
			$("#exhibition_area").addClass("required");
		}else{
			$("#exhibition_area").val("");
			$("#exhibition_area").css("display","none");
			$("#exhibition_area").removeClass("required");
		}
	}else{
		if(radio.attr("checked")){
			$("#exhibition_area").val("");
			$("#exhibition_area").css("display","none");
			$("#exhibition_area").removeClass("required");
		}
	}
}

function changeAreaMa() {
	var val = $("#maform_value").val();
	var classAttr = "input_css";
	if(val == '3') {
		$("#maform_sel").attr("style","display:");
		$("#maform_sel").attr("class", classAttr+" required");
	} else {
		$("#maform_sel").attr("style","display:none");
		$("#maform_sel").attr("class", classAttr);
		$("#maform_sel").val("");
	}
}

/**
* 选择树设置隐藏域值 public.js中原函数不适用
*/
function initTreeValue(treeId, treeNode) {
    if(treeId == 'belong_industry'){
    	if(treeNode.level < 2){
    		scmWarn($("#" + treeId).attr("label")
    				+ "不能选择第一、二级，请选择它的子级！");
    		return false;
    	}
    }


	//if (!(treeNode && treeNode.level > 0)) {
	if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label")
				+ messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
		}
		return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			//str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);

		
	
	}
function locationArea(id,value){
    
	if(value=='99'){
		$("#"+id+"_other").show();
		$("#"+id+"_other_span").show();
		$("#"+id+"_other").addClass("required");
	}else{
		$("#"+id+"_other").hide();
		$("#"+id+"_other_span").hide();
		$("#"+id+"_other").val("");
		$("#"+id+"_other").removeClass("required");	
	}
	
}

function changeArea1(){
	if($("#category_07").is(":checked")){
		$("#organization_category_other").removeClass("gray");
		$("#organization_category_other").addClass("required");
		$("#organization_category_other").attr("disabled",false);
	}else{
		$("#organization_category_other").removeClass("required");
		$("#organization_category_other").addClass("gray");
		$("#organization_category_other").attr("disabled",true);
		$("#organization_category_other").val("");
	}
}

function changeArea2(){
	if($("#organization_02").is(":checked")){
		$("#organization_type_other").removeClass("gray");
		$("#organization_type_other").addClass("required");
		$("#organization_type_other").attr("disabled",false);
	}else{
		$("#organization_type_other").removeClass("required");
		$("#organization_type_other").addClass("gray");
		$("#organization_type_other").attr("disabled",true);
		$("#organization_type_other").val("");
	}
}



</script>


